Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rm dependency on 08-wasm in ibc-go #4801

Merged
merged 12 commits into from
Oct 4, 2023

Conversation

charleenfei
Copy link
Contributor

@charleenfei charleenfei commented Oct 2, 2023

Description

closes: #4779

Commit Message / Changelog Entry

type: commit message

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@charleenfei charleenfei changed the title fix: revert 02 client changes fix: rm dependency on 08-wasm in ibc-go Oct 2, 2023
@colin-axner
Copy link
Contributor

colin-axner commented Oct 2, 2023

maybe we can remove the code in testing/endpoint.go as well? But if it seems like to much work, we can do it in a followup no problem

@charleenfei
Copy link
Contributor Author

charleenfei commented Oct 2, 2023

maybe we can remove the code in testing/endpoint.go as well? But if it seems like to much work, we can do it in a followup no problem

absolutely, i can do it. I think the markdown links should get fixed when we merge this feature branch to main as well -- so I will not fix them in this pr if that is ok. also commented out the wasm tm tests for now instead of deleting, in ref to our planning call.

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I pushed a commit commenting out a bit of code that is also not used anymore.

@crodriguezvega
Copy link
Contributor

Looks like we can also clean up the docker file.

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, there's some other random diffs still remaining as shown here (scroll to testing/ directory changes). I'm okay to revert any of these fixes later if needed, but also happy to get them in now

I'll need to figure the workaround to the testing pkg in #4804 for creating wasm clients

go.mod Outdated Show resolved Hide resolved
modules/light-clients/08-wasm/types/types_test.go Outdated Show resolved Hide resolved
modules/light-clients/08-wasm/types/update_test.go Outdated Show resolved Hide resolved
testing/wasm.go Outdated
@@ -1,64 +1,63 @@
package ibctesting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this file, the testing pkg should be designed in a way where light clients don't need to put their testing structures here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, we can delete

@charleenfei
Copy link
Contributor Author

Looks like we can also clean up the docker file.

I will open an issue for this, I'd prefer to keep the changes in this PR to code cleanup/deletion

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

testing/wasm.go Outdated
@@ -1,64 +1,63 @@
package ibctesting
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, we can delete

@charleenfei charleenfei merged commit 176a497 into feat/wasm-clients Oct 4, 2023
17 of 18 checks passed
@charleenfei charleenfei deleted the fix/revert-02-client-changes branch October 4, 2023 09:26
func init() {
ibctesting.DefaultTestingAppInit = setupTestingApp
}
// func init() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QQ: was there a failure here? We need this init func to set up the correct simapp (one in 08-wasm)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, i'll add it back in the next pr. i'm just confused why the tests didn't fail on this pr run 😕

@charleenfei
Copy link
Contributor Author

LGTM! I pushed a commit commenting out a bit of code that is also not used anymore.

this func was actually still being used (default init()) to create the simapp for the grandpa tests -- we probably need to think of a better way of changing this than relying on this default func

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants